home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / ms-0_06.lha / xms-0.06 / backward.h next >
C/C++ Source or Header  |  1990-02-01  |  1KB  |  32 lines

  1. /* backward.h - fake some X11R3 Xt features for those who have X11R2 */
  2. /* Copyright (C) 1990 Andreas Gustafsson */
  3.  
  4. /* This is ugly, but it will go away as soon as people stop using X11R2. */
  5. /* (i.e., not soon...) */
  6.  
  7. /* Test if we have the X11R2 or X11R3 toolkit.  Seems like XtVersion */
  8. /* is 2002 (!) with X11R2 (at least on our Sony NWS-1510 machines), */
  9. /* 11003 (a lot more logical) with X11R3 and (confused again) 11003 */
  10. /* with X11R4 also... */
  11.  
  12. #include <X11/IntrinsicP.h> /* needed to define XtVersion */
  13. #if XtVersion < 11003
  14. /* Make it legal to declare XtAppContext variables; the macros below */
  15. /* should ensure that those variables are never used */
  16. typedef struct undefined *XtAppContext;
  17. #define XtAppAddInput(app,source,cond,proc,data) \
  18.   XtAddInput(source,cond,proc,data)
  19. #define XtAppAddTimeOut(app,interval,proc,data) \
  20.   XtAddTimeOut(interval,proc,data)
  21. #define XtAppWarning(app,text) XtWarning(text)
  22. #define XtAppError(app,text) XtError(text)
  23. #define XtRDimension "Dimension"
  24. #define XtRBool "Bool"
  25. #define XtWidgetToApplicationContext(widget) (0)
  26. #define XtReleaseGC XtDestroyGC
  27.  
  28. /* define topLevelShellWidgetClass */
  29. globalref WidgetClass topLevelShellWidgetClass;
  30.  
  31. #endif
  32.